package com.lei2j.factory;

public class NYPizzaStore extends PizzaStore {

	@Override
	public Pizza createPizza(String type) {
		if(type.equals("cheess")) {
			return new NYCheessPizza();
		}else if(type.equals("veggie")) {
			return new NYVeggiePizza();
		}else {
			return null;
		}
	}
}
